/*
 * @Author: LMN
 * @Title: file content
 * @LastEditors: LMN
 * @Description: file content
 * @Date: 2019-03-14 13:34:59
 * @LastEditTime: 2019-03-14 14:00:12
 */
import Vue from 'vue'
import Vuex from 'vuex'
import axios from 'axios'
import api from '../api/index'

Vue.use(Vuex)
Vue.prototype.$ajax = axios
Vue.prototype.$http = api

export default new Vuex.Store({
  // 定义状态
  state: {},
  // 更改状态的函数定义
  mutations: {},
  // 异步操作分发
  actions: {}
})
